Pokémon uby

One day, I was cleaning my room and found my old GameBoyAdvance SP. I went to Eagle Hill (my local collector's shop) to see it I could find any games. I saw a copy of Pokémon Ruby, however, the label was ripped, so it said uby instead of Ruby. It was only $5, so I bought it.
I walked back to my house and popped it in. It wouldn't read, so I had to restart it a lot. On the 5th try, it worked. The battery was dry, so the clocks didn't work. Other than that, it worked fine.